import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-05-03
 * Time: 21:07
 */
public class Main {
    public static void main(String[] args) {
        Comparator comparator = new ComparatorImpl();

        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            System.out.println(comparator.max(x, y));
        }
    }

}

interface Comparator {

    public abstract int max(int x , int y);
}

class ComparatorImpl implements Comparator {

    public int max(int x, int y) {
        return x > y? x:y;
    }
    public static void main6(String[] args) {
        // Sub是需要你定义的子类
        Base base = new Sub();

        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            base.setX(x);
            base.setY(y);
            System.out.println(base.calculate());
        }
    }

}

abstract class Base {

    private int x;
    private int y;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int calculate() {
        if (avg() == 0) {
            return 0;
        } else {
            return sum() / avg();
        }
    }

    /**
     * 返回x和y的和
     */
    public abstract int sum();

    /**
     * 返回x和y的平均值
     */
    public abstract int avg();

}

class  Sub extends Base {

    public int sum() {
        return getX() + getY();
    }

    public int avg() {
        return (getX()+getY())/2;
    }
    public int calculate() {

        if (avg() == 0) {
            return 0;
        } else {
            return sum() / avg();
        }
    }
    public static void main2(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String className = scanner.next();
            Base1 obj = (Base1) Class.forName(className).newInstance();
            System.out.println(getClassName(obj));
        }
    }

    public static String getClassName(Base1 obj) {
        return obj.prin1();
    }

}

class Base1 {
    public String prin1() {
        return "Base";
    }
}

class Sub1 extends Base1 {
    public String prin1() {
        return "Sub1";
    }

}

class Sub2 extends Base1 {
    public String prin1() {
        return "Sub2";
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] arr = new int[7];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = scanner.nextInt();
        }
        scanner.close();

        for(int i = 0; i < arr.length - 1;i++) {
            for(int j = 0;j < arr.length-1 - i;j++ ) {
                if(arr[j] > arr[j+1]) {
                    int tmp = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = tmp;
                }
            }
        }


        for (int k = 0; k < arr.length; k++) {
            System.out.print(arr[k]+" ");
        }
    }

}